-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[core] subscriber configuration #1604
Conversation
global Create/Destroy renamed to Start/Stop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approve, but we need to keep thinking about the two comments which I made.
@@ -96,6 +91,11 @@ namespace eCAL | |||
return(m_created); | |||
} | |||
|
|||
bool CSubscriber::Create(const std::string& topic_name_) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rex-schilasky why did you add this function?
udp.enable = eCAL::Config::IsUdpMulticastRecEnabled(); | ||
|
||
// tcp config | ||
tcp.enable = eCAL::Config::IsTcpRecEnabled(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a bit strange, because you give default values in ecal_subscriber_config.h
but then in the constructor, assign the values from eCAL::Config
.
We need to align with @Peguen but I agree maybe it makes sense that the eCAL::Config has a way to fill them with values from the Ini file...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
} | ||
|
||
void CPubGate::Create() | ||
void CPubGate::Start() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: method 'Start' can be made static [readability-convert-member-functions-to-static]
ecal/core/src/pubsub/ecal_pubgate.h:43:
- void Start();
+ static void Start();
} | ||
|
||
bool CSubscriber::Create(const std::string& topic_name_, const SDataTypeInformation& topic_info_) | ||
bool CSubscriber::Create(const std::string& topic_name_, const SDataTypeInformation& data_type_info_, const Subscriber::Configuration& config_) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: parameter 'config_' is unused [misc-unused-parameters]
bool CSubscriber::Create(const std::string& topic_name_, const SDataTypeInformation& data_type_info_, const Subscriber::Configuration& config_) | |
bool CSubscriber::Create(const std::string& topic_name_, const SDataTypeInformation& data_type_info_, const Subscriber::Configuration& /*config_*/) |
Description
CSubscriber configuration introduced.